package xubo.wangcaifeng.love.Utils

import redis.clients.jedis.{Jedis, JedisPool, JedisPoolConfig}

object JedisPool {
  private val config = new JedisPoolConfig()
  private val pool = new JedisPool("mini1",6379)
  def getConnection(): Jedis={
    pool.getResource
  }


}
object test{
  def main(args: Array[String]): Unit = {
    println(JedisPool.getConnection().get("tzccfeth"))
  }
}
